//
//  KATBannerData.h
//  KATFramework
//
//  Created by Kantice on 15/9/11.
//  Copyright (c) 2015年 KatApp. All rights reserved.
//

#import <Foundation/Foundation.h>


#import "KATButton.h"
#import "KATHttpUtil.h"


@interface KATBannerData : NSObject


#pragma -mark 属性

#pragma -mark 携带值

///类型
@property(nonatomic,assign) int type;

///编号
@property(nonatomic,assign) int num;

///int值
@property(nonatomic,assign) long long tag;

///int值2
@property(nonatomic,assign) long long index;

///double值
@property(nonatomic,assign) double value;

///字符串值
@property(nonatomic,copy) NSString *message;

///URL
@property(nonatomic,copy) NSString *url;

///id值
@property(nonatomic,retain) id object;

///状态
@property(nonatomic,assign) int state;


#pragma -mark 显示内容

///标题
@property(nonatomic,copy) NSString *title;

///指示器(button类型)
@property(nonatomic,assign) KATButtonType indicator;

///图片路径
@property(nonatomic,copy) NSString *imagePath;

///标题颜色
@property(nonatomic,retain) UIColor *titleColor;

///是否包含独立的标题颜色
@property(nonatomic,assign) BOOL hasTitleColor;


#pragma -mark 异步加载远程图片

///是否是远程图片
@property(nonatomic,assign) BOOL isRemoteImage;

///当前是否为缓冲图片
@property(nonatomic,assign) BOOL isCacheImage;

///远程图片是否加载完成
@property(nonatomic,assign) BOOL isImageReady;

///加载图片是否失败
@property(nonatomic,assign) BOOL isLoadImageFail;


#pragma -mark 类方法

///获取实例
+ (instancetype)bannerData;


#pragma -mark 对象方法

///远程加载图片（异步）
- (void)loadRemoteImageWithSavePath:(NSString *)path andUrl:(NSString *)url;

///远程加载图片（异步，使用KATImage的）
- (void)loadRemoteImageWithUrl:(NSString *)url;

///描述
- (NSString *)description;

///释放内存
- (void)dealloc;


@end


